package day24.homework;

import java.util.Comparator;

public class StudentComparator implements Comparator<Student> {
    @Override
    public int compare(Student s1, Student s2) {
        // 按照成绩逆序排列
        return Double.compare(s2.getScore(), s1.getScore());
    }
}